package com.liyk.shop.controller;

import com.liyk.shop.feign.ProductFeignService;
import com.liyk.shop.response.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "product")
public class ConsumerController {

    @Autowired
    private ProductFeignService productFeignService;

    @GetMapping(value = "list")
    public Result list() {
        Result result = productFeignService.list();
        return result;
    }
}
